package com.ruoyi.project.system.netty;

import com.alibaba.fastjson.JSONArray;

import com.github.unclecatmyself.bootstrap.verify.InChatVerifyService;
import com.ruoyi.project.system.domain.SysMobileUser;
import com.ruoyi.project.system.mapper.SysMobileUserMapper;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by MySelf on 2019/1/3.
 */
public class VerifyServiceImpl implements InChatVerifyService {

    @Autowired
    private SysMobileUserMapper mobileUserMapper;

    @Override
    public boolean verifyToken(String s) {

        SysMobileUser sysMobileUser = mobileUserMapper.selectSysMobileUserById(Long.valueOf(s));
        if (sysMobileUser == null) {
            return false;
        }
        return true;
    }

    @Override
    public JSONArray getArrayByGroupId(String s) {
        return null;
    }
}
